package com.mall.dao.custom;

import com.mall.controller.vo.OrderVO;
import com.mall.controller.vo.ViewInfo;
import com.mall.dao.generator.OrderMapper;
import com.mall.entity.Order;

import java.util.List;

public interface CtOrderMapper extends OrderMapper {
    List<Order> selectByOrderNumber(String orderNumber);

    int updateStatusByOrderNumber(String orderNumber, int orderStatus);

    List<OrderVO> selectListVO(Order order);

    Order selectByGoodsIdAndUserId(Integer goodsId, Integer userId);

    int updateAddressByOrderNumber(Integer addressId, String orderNumber);

    ViewInfo getTodayData();

    ViewInfo getTotalData();
}